//
//  ZyqObjc.swift
//  SwiftDemo
//
//  Created by apple on 17/3/7.
//  Copyright © 2017年 AllenZyq. All rights reserved.
//

import UIKit

var _count1 = 10;

class ZyqObjc: NSObject {
    var count = 0;
    func increment() {
        self.count += 1;
            print("zyq",count);
    }
    func incrementBy(amount : Int) {
        count += amount;
        print("zyq",count);
    }
    func resetCount()  { //不带class 相当于对象方法
        count = 0;
        print("zyq",count);
    }
    class func countTo100() { //相当于类方法
        _count1 = 100;
        print(_count1);
    }
    
}
